{extends 'admin/layout/table-main.tpl'}

{block title}产品管理{/block}
{block smallTitle}系统内的产品管理。{/block}

{block main}
<div class="row" xmlns="http://www.w3.org/1999/html">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			<div class="ibox-title">
				<h5>产品管理 <small>后台产品编辑</small></h5>
			</div>
			<div class="ibox-content">
				<form method="post" class="form-horizontal" action="{route('AdminGoodsBuysEditAction')}">
					{if $data}
					<div class="form-group">
						<label class="col-sm-2 control-label">id</label>
						<div class="col-sm-10">
							<p class="form-control-static">{$data.id}</p>
						</div>
					</div>
					{/if}
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<label class="col-sm-2 control-label">内容</label>
						<div class="col-sm-10">
							<textarea name="content" class="form-control">{Input::old('content', $data.content)|escape}</textarea>
							<span></span>
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-2">
							<input type="hidden" class="form-control" name="id" value="{$data.id}">
							<input type="hidden" class="form-control" name="goods_id" value="{$get.goods_id}">
							<button class="btn btn-primary" type="submit">保存内容</button>
							<a class="btn btn-white" type="button" href="{route('AdminGoodsBuysList',['id'=>$get.goods_id])}">返回</a>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
{/block}
{block script}
{/block}
